<?php
namespace Shama\Contact;
/**
 * Contact Documents.
 *
 * It represant a document attached to a contact (can be a resume for instance)
 *
 * @author Xavier VILAIN
 * @package Shama\Contact
 * @license
 *
 * @property int	$msid			Id of the medical study
 * @property int	$mcid			Medical Center
 * @property int	$docid			Document Id
 */
class Document extends \Fox\Object {

	/**
	 * Link to Medical Study
	 */
	const LINK_CONTACT = "contact";

	/**
	 * Link to Document
	 */
	const LINK_DOCUMENT = "document";

}
\Fox\Dao::infos(Document::className(),new \Fox\Object\Info('contact_documents', \Fox\Databases::DB_APP));

// Link to Document
\Fox\Object\Links::add(\Fox\Dao::link(Document::className(),Document::LINK_DOCUMENT)
	->to(\Shama\Document::className(), \Shama\Document::LINK_CONTACT)
	->on('docid'));